const saveReloadRules = [
    {
        name: "QManage", label: "登录脚本",
        text: [/QManage|登录脚本/i],
        rules: [
            (filename) => /Mir200\\Envir\\MapQuest_Def\\QManage([^\\]*)\.txt/.test(filename)
        ]
    },
    {
        name: "QFunction", label: "功能脚本",
        text: [/QFunction|功能脚本/i],
        rules: [
            (filename) => /Mir200\\Envir\\Market_Def\\QFunction([^\\]*)\.txt/.test(filename)
        ]
    },
    {
        name: "QMission", label: "任务脚本",
        text: [/QMission|任务脚本/i],
        rules: [
            (filename) => /Mir200\\Envir\\Market_Def\\QMission([^\\]*)\.txt/.test(filename)
        ]
    },
    {
        name: "QChatbox", label: "聊天框脚本",
        text: [/QChatbox|聊天框脚本/i],
        rules: [
            (filename) => /Mir200\\Envir\\Market_Def\\QChatbox([^\\]*)\.txt/.test(filename)
        ]
    },
    {
        name: "Robot", label: "机器人脚本",
        text: [/Robot|机器人脚本/i],
        rules: [
            (filename) => /Mir200\\Envir\\Robot_def\\.+\.txt/.test(filename)
        ]
    },
    {
        name: "NPC", label: "NPC脚本",
        text: [/所有NPC/i],
        rules: [
            (filename) => /Mir200\\Envir\\Market_Def\\.+\.txt/.test(filename),
            (filename) => /Mir200\\Envir\\Npc_Def\\.+\.txt/.test(filename),
            (filename) => /Mir200\\Envir\\QuestDiary\\.+\.txt/.test(filename),
            (filename) => /Mir200\\Envir\\MerChant.txt/.test(filename),
        ]
    },
    {
        name: "爆率", label: "怪物爆率",
        text: [/怪物爆率/i],
        rules: [
            (filename) => /Mir200\\Envir\\MonItems\\.+\.txt/.test(filename),
            (filename) => /Mir200\\Envir\\MonDropLimitList.txt/.test(filename),
        ]
    },

]


module.exports = { saveReloadRules }